﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AddIn.EA.Architecture.ComponentLogic.StandardProject.Domains
{
    public class LayerUI : BaseDomain
    {
        public LayerUI(Int32 id, String description) : base(id, description) { }

        public static LayerUI View = new LayerUI(0, "View");
        public static LayerUI Model = new LayerUI(1, "Model");
        public static LayerUI Presenter = new LayerUI(2, "Presenter");
        public static LayerUI Communication = new LayerUI(3, "Communication");

        public LayerUI GetOne(int id)
        {
            return GetAll().Find(it => it.ID.CompareTo(id) == 0);
        }
        public List<LayerUI> GetAll()
        {
            List<LayerUI> list = new List<LayerUI>();
            list.Add(View);
            list.Add(Model);
            list.Add(Presenter);
            list.Add(Communication);
            return list;
        }
    }
}
